← Back to issue list

snapcraft doesn't allow setting the environment for hooks

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1848381
Type
issue
State
open
Author
~anonymouse67
Labels
Created
2019-10-16 20:09:58.977903+00:00
Updated
2019-10-16 20:09:58.977903+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

With the following hook environment specification in snapcraft.yaml: ``` hooks: install: environment: LC_ALL: C.UTF-8 LANG: C.UTF-8 ``` snapcraft fails like this: ``` $ snapcraft Issues while validating snapcraft.yaml: The 'hooks/install' property does not match the required schema: Additional properties are not allowed ('environment' was unexpected) ``` This is with version 3.8 on amd64: ``` $ snapcraft version snapcraft, version 3.8 $ snap info snapcraft | grep installed installed: 3.8 (3440) 60MB classic ```

Evaluation history

No evaluation history available.